package com.szq.pattern;

/**
 * @description:
 * @author: szq
 * @date: 2021-09-06 08:52:41
 */
public class Adapter extends TargetAbstraction {

    private OtherClass otherClass;

    public Adapter(OtherClass otherClass) {
        this.otherClass = otherClass;
    }

    @Override
    public String filter(String str) {
        return otherClass.replace(str);
    }
}
